package com.stepcleanse.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.stepcleanse.system.mapper.LaundryOrderMapper;
import com.stepcleanse.system.domain.LaundryOrder;
import com.stepcleanse.system.service.ILaundryOrderService;

/**
 * 洗涤订单Service业务层处理
 * 
 * @author stepcleanse
 * @date 2024-12-09
 */
@Service
public class LaundryOrderServiceImpl implements ILaundryOrderService 
{
    @Autowired
    private LaundryOrderMapper laundryOrderMapper;

    /**
     * 查询洗涤订单
     * 
     * @param factoryOrderId 洗涤订单主键
     * @return 洗涤订单
     */
    @Override
    public LaundryOrder selectLaundryOrderByFactoryOrderId(String factoryOrderId)
    {
        return laundryOrderMapper.selectLaundryOrderByFactoryOrderId(factoryOrderId);
    }

    /**
     * 查询洗涤订单列表
     * 
     * @param laundryOrder 洗涤订单
     * @return 洗涤订单
     */
    @Override
    public List<LaundryOrder> selectLaundryOrderList(LaundryOrder laundryOrder)
    {
        return laundryOrderMapper.selectLaundryOrderList(laundryOrder);
    }

    /**
     * 新增洗涤订单
     * 
     * @param laundryOrder 洗涤订单
     * @return 结果
     */
    @Override
    public int insertLaundryOrder(LaundryOrder laundryOrder)
    {
        return laundryOrderMapper.insertLaundryOrder(laundryOrder);
    }

    /**
     * 修改洗涤订单
     * 
     * @param laundryOrder 洗涤订单
     * @return 结果
     */
    @Override
    public int updateLaundryOrder(LaundryOrder laundryOrder)
    {
        return laundryOrderMapper.updateLaundryOrder(laundryOrder);
    }

    /**
     * 批量删除洗涤订单
     * 
     * @param factoryOrderIds 需要删除的洗涤订单主键
     * @return 结果
     */
    @Override
    public int deleteLaundryOrderByFactoryOrderIds(String[] factoryOrderIds)
    {
        return laundryOrderMapper.deleteLaundryOrderByFactoryOrderIds(factoryOrderIds);
    }

    /**
     * 删除洗涤订单信息
     * 
     * @param factoryOrderId 洗涤订单主键
     * @return 结果
     */
    @Override
    public int deleteLaundryOrderByFactoryOrderId(String factoryOrderId)
    {
        return laundryOrderMapper.deleteLaundryOrderByFactoryOrderId(factoryOrderId);
    }
}
